package decorator_pattern;

/**
 * @author liwuji
 * @date 2023/12/11
 * @desc 装饰器
 **/
// 也可以是接口 接口更好
public abstract class ShapeDecorator implements Shape {
    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape) {
        this.decoratedShape = decoratedShape;
    }
    public void draw() {
        decoratedShape.draw();
    }
}
